<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/opesoft/tlds/layout.tld" prefix="layout"%>
<%@ taglib prefix="page" tagdir="/WEB-INF/tags/page"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<form name="editForm" id="editForm" action="dictionaryConfigAction.do">
	<input type="hidden" name="op" value="${op}">
	<input type="hidden" name="id" value="${data.id}">
	<page:field name="Code" error="code" width="100%">
		<page:text name="code" value="${data.code}" />
	</page:field>
	<page:field name="Name" error="name" width="100%">
		<page:text name="name" value="${data.name}" />
	</page:field>
	<page:field name="Remark" error="remark" width="100%">
		<page:textarea name="remark" style="width:100%; height:80px;" value="${data.remark}" />
	</page:field>
	<page:field width="100%">
		<c:if test="${op=='insert'}">
			<input type="button" value="Insert" onclick="template.submitForm();" class="button">
			<iframe style="display:none" onload="javascript:editPart.setName('New Dictionary Config');"></iframe>
		</c:if>
		<c:if test="${op=='update'}">
			<input type="button" value="Update" onclick="template.submitForm();" class="button">
			<input type="button" value="Cancel" onclick="template.cancel();" class="button">
			<iframe style="display:none" onload="javascript:editPart.setName('Edit Dictionary Config');"></iframe>
		</c:if>
		<input type="reset" value="Reset" onclick="template.reset();" class="button">
	</page:field>
</form>
